﻿using System;
using Tools.Api.Cache;

namespace Tools.Cache {
    /// <summary>
    ///  NULL OBJECT 模式
    /// 不希望做缓存时的处理类
    /// </summary>
    public class NullObjectCache : ICacheStorage {
        public void Remove(string key) {

        }

        public void Store(string key, object data) {

        }

        public T Retrieve<T>(string key) {
            return default(T);
        }

        public T Pull<T>(string key, Func<T> method) {
            return default(T);
        }
    }
}
